﻿@model HelloMinasan.Web.Song.ViewModels.AdminUsersUpdate
@{
    ViewBag.Title = "Update User";
    Layout = "~/Views/Shared/_Layout.Mobile.cshtml";
    ViewBag.ShowBackButton = true;
    ViewBag.ShowHomeButton = true;
}

@using (Html.BeginForm("Edit", "LeaveApplication", new { id = Model.Userid }))
{
    <div>
        @Html.HiddenFor(n => n.Userid)
        @Html.LabelFor(n=>n.UserName)
        @Html.TextBoxFor(n => n.UserName, new { @readonly = true })
    </div>
    <div>
        @Html.LabelFor(n=>n.DisplayName)
        @Html.TextBoxFor(n=>n.DisplayName, new { @readonly = true })
    </div>
    <div>
        @Html.LabelFor(n=>n.Email)
        @Html.TextBoxFor(n=>n.Email, new { @readonly = true })        
    </div>
    <div>
        @Html.LabelFor(n=>n.Active)
        @Html.TextBoxFor(n=>n.Active, new { @readonly = true }) 
    </div>    
    <div>
        @Html.LabelFor(n=>n.IsLocked) 
       @Html.DropDownListFor(m => m.IsLocked, (SelectList)ViewBag.Typeclocked, new { @readonly = true })
    </div>
    <div class="ui-grid-a">
        <div class="ui-block-b">
        <input name="btnEdit" data-theme="b" data-icon="edit" data-iconpos="right" type="submit" value='Clock'/>
        </div>
        @if(Model.Active=="InActive")
        {                  
        <div class="ui-block-b">
            <input name="btnActive" data-theme="b" data-icon="check" data-iconpos="right" type="button" value='Active' onclick="location.href='@Url.Action("Active", "AdminUsers", new {Userid = Model.Userid })'"/>
        </div>
        }
    </div>
 

}

